const mysql=require('mysql')

module.exports={
    config:{
        host:"127.0.0.1",
        prot:'3306',
        user:'root',
        password:'123456',
        database:'mydoctor',
        multipleStatement:true,
        timezone:'08:00'
    },
    connect(sql,params,cb){
        let conn=mysql.createConnection(
            this.config
        )
        conn.connect()
        conn.query(sql,params,cb)
        conn.end()
    }
}